package com.datareport.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 统计规则数据传输对象
 */
@Data
public class StatRuleDTO {
    private String ruleId;
    
    @NotBlank(message = "规则名称不能为空")
    private String name;
    
    private String description;
    
    @NotBlank(message = "关联表不能为空")
    private String tables;
    
    private String conditions;
    
    @NotBlank(message = "分组字段不能为空")
    private String groupFields;
    
    @NotBlank(message = "聚合字段不能为空")
    private String aggFields;
    
    private Integer status;
    
    private LocalDateTime effectTime;
}